User module bitballs/models/user {can.Map} source can.Map A can.Map that's connected to the /services/users with all of can-connect/can/super-map's behaviors. Use Use the User model to CRUD users on the server. Use the CRUD methods getList, save, and destroy added to User by the can-connect/can/map behavior. var User = require("bitballs/models/user"); User.getList({where: {gameId: 5}}).then(function(users){ ... }); new User({gameId: 6, playerId: 15, type: "1P", time: 60}).save()
A can.Map that's connected to the /services/users with all of can-connect/can/super-map's behaviors.
Use
Use the
Usermodel to CRUD users on the server. Use the CRUD methodsgetList,save, anddestroyadded toUserby the can-connect/can/map behavior.